package com.kaka.bean;

public class Teacher {
    private int tid;
    private String username;
    private String password;
    private String tname;
    private String tdesc;

    public Teacher() {
    }

    public Teacher(String username, String password, String tname) {
        this.username = username;
        this.password = password;
        this.tname = tname;
    }

    public Teacher(int tid, String username, String password, String tname, String tdesc) {
        this.tid = tid;
        this.username = username;
        this.password = password;
        this.tname = tname;
        this.tdesc = tdesc;
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getTdesc() {
        return tdesc;
    }

    public void setTdesc(String tdesc) {
        this.tdesc = tdesc;
    }

    @Override
    public String toString() {
        return "教师ID：" + tid + '\'' + ", 姓名：'" + tname + '\'' + ", 教师介绍：'" + tdesc;
    }
}
